function imgChange(file1, file2, file3) {
    //获取点击的文本框
    var file = document.getElementById(file2);
    var fileImg = document.getElementById(file3);
    //存放图片的父级元素
    //获取的图片文件
    var fileList = file.files;
    //文本框的父级元素
    var input = document.getElementsByClassName(file1)[0];
    var imgArr = [];
    //遍历获取到得图片文件
    for (var i = 0; i < fileList.length; i++) {
        var imgUrl = window.URL.createObjectURL(file.files[i]);
        console.log(imgUrl)
        imgArr.push(imgUrl);
        fileImg.setAttribute("src", imgArr[i]);
    }
};